﻿<?php



if (!empty($_SERVER['HTTP_X_REQUESTED_WITH'])) { 
    $status=$_GET['status'];


    $id=$_GET['id'];



$sql ="update `news` set `status`='$status' where `id`='$id' ";
// echo $sql;
mysqli_query($link, $sql);

$_rows=mysqli_affected_rows($link);
       echo $_rows;


 
};
  
